package us.wili.dev.client.service;

import us.wili.dev.model.constants.SmsCacheKeyEnum;

public interface SmsService {
    void sendVeriflyCode(String phone,SmsCacheKeyEnum emun);

    /**
     * 核对验证码,核对不一致抛出异常提醒前端
     * @param phone 相关手机号
     * @param code 验证码
     * @param emun 核对的验证码类型
     */
    void checkCodeOrFail(String phone,String code,SmsCacheKeyEnum emun);
}
